package com.homework.g2021;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Demo {

	public static void main(String[] args) {
		String xmlPath="/com/homework/g2021/beans0.xml";
		ApplicationContext applicationContext = new ClassPathXmlApplicationContext(xmlPath);
		
		Flywuya lfw = (Flywuya)applicationContext.getBean("flw");
		lfw.show();
		
		Flyfh lff = (Flyfh)applicationContext.getBean("flf");
		lff.show();
		
	}

}
